package com.eliza.navs.fg

import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.Navigation
import androidx.navigation.fragment.navArgs
import androidx.navigation.navArgument
import com.eliza.navs.R


class Fg3 : Fragment() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // Inflate the layout for this fragment
        val view = inflater.inflate(R.layout.fragment_fg3, container, false)


        val toBundle = Fg3Args("大外狂徒", 12).toBundle()

        Log.i(this::class.java.name, "Fg3Args:: Fg3 ==> Fg4")


        view.findViewById<View>(R.id.fg3_btn).setOnClickListener {
            Navigation.findNavController(view).navigate(R.id.action_fg3_to_fg4, toBundle)
        }
        return view
    }


}